package com.example.novelweb.service;

import com.example.novelweb.common.BaseResponse;
import com.example.novelweb.model.dto.user.UserLoginRequest;
import com.example.novelweb.model.dto.user.UserUpdateRequest;
import com.example.novelweb.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.novelweb.model.vo.UserVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author PERSON
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2025-01-10 18:30:13
*/
public interface UserService extends IService<User> {

  BaseResponse<String> sendCodeMock(String account);


  BaseResponse<String> login(UserLoginRequest userLoginRequest);


  BaseResponse<Boolean> logout(HttpServletRequest httpServletRequest);

  UserVO getVOById(Long id);

  BaseResponse<UserVO> getInfo();


  BaseResponse<UserVO> getInfoById(Long id);


  BaseResponse<Boolean> updateMe(UserUpdateRequest userUpdateRequest,HttpServletRequest httpServletRequest);
}
